package com.neusoft.aclome.cmp.cloud.server.jcce.entity;

import java.util.List;

// 任务分配时生成，给武大课题3用于监控任务
public class TaskInfoToKt3 {

    // 任务到达时间(yyyy-MM-dd HH:mm:ss)
    private String arrivalTime;

    // 任务开始时间(yyyy-MM-dd HH:mm:ss)
    private String startTime;

    // 任务cpu需求量
    private String cpuDemand;

    // 任务内存需求量
    private String memoryDemand;

    // 存储内存需求量
    private String storageDemand;

    // 任务分配列表
    private List<AllocationInfo> taskAllocationList;

    public String getArrivalTime() {
        return arrivalTime;
    }

    public void setArrivalTime(String arrivalTime) {
        this.arrivalTime = arrivalTime;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getCpuDemand() {
        return cpuDemand;
    }

    public void setCpuDemand(String cpuDemand) {
        this.cpuDemand = cpuDemand;
    }

    public String getMemoryDemand() {
        return memoryDemand;
    }

    public void setMemoryDemand(String memoryDemand) {
        this.memoryDemand = memoryDemand;
    }

    public String getStorageDemand() {
        return storageDemand;
    }

    public void setStorageDemand(String storageDemand) {
        this.storageDemand = storageDemand;
    }

    public List<AllocationInfo> getTaskAllocationList() {
        return taskAllocationList;
    }

    public void setTaskAllocationList(List<AllocationInfo> taskAllocationList) {
        this.taskAllocationList = taskAllocationList;
    }

    public static class AllocationInfo {

        // 任务编号
        private Integer jobIndex;

        // 任务名称
        private String jobName;

        // 云商ID
        private Integer cloudPlatformId;

        // 云商名称
        private String cloudPlatformName;

        // 虚拟机规格类型
        private String instanceType;

        // 虚拟机ID
        private Integer virtualMachineId;

        // 虚拟机名称
        private String virtualMachineName;

        public Integer getJobIndex() {
            return jobIndex;
        }

        public void setJobIndex(Integer jobIndex) {
            this.jobIndex = jobIndex;
        }

        public String getJobName() {
            return jobName;
        }

        public void setJobName(String jobName) {
            this.jobName = jobName;
        }

        public Integer getCloudPlatformId() {
            return cloudPlatformId;
        }

        public void setCloudPlatformId(Integer cloudPlatformId) {
            this.cloudPlatformId = cloudPlatformId;
        }

        public String getCloudPlatformName() {
            return cloudPlatformName;
        }

        public void setCloudPlatformName(String cloudPlatformName) {
            this.cloudPlatformName = cloudPlatformName;
        }

        public String getInstanceType() {
            return instanceType;
        }

        public void setInstanceType(String instanceType) {
            this.instanceType = instanceType;
        }

        public Integer getVirtualMachineId() {
            return virtualMachineId;
        }

        public void setVirtualMachineId(Integer virtualMachineId) {
            this.virtualMachineId = virtualMachineId;
        }

        public String getVirtualMachineName() {
            return virtualMachineName;
        }

        public void setVirtualMachineName(String virtualMachineName) {
            this.virtualMachineName = virtualMachineName;
        }
    }
}

// 任务分配列表


